package org.dromara.business.modules.favorites.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * 用户收藏对象 bu_favorites
 *
 * @author ckk
 * @date 2025-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bu_favorites")
public class BuFavorites extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 被收藏对象ID
     */
    private Long targetId;

    /**
     * 被收藏对象标题
     */
    private String targetTitle;

    /**
     * 被收藏对象类型，1-服务，2-需求
     */
    private Integer targetType;


}
